package com.shibaobei.activity.model;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

/**
 * 申请实体
 * Created by Administrator on 2020/5/1 0001.
 */
public class Application implements Serializable{
    private int id;
    //申请标题 {模板名称}_{姓名}_{日期}
    private String title;
    //申请人
    private User applicant;
    //申请时间
    private Date applyDate;
    //申请状态
    private String status;
    //doc文件路径
    private String docFilePath;
    //当前申请对应的多个审批实体
    private Set<ApproveInfo> approveInfos;
    //当前申请使用的模板对象
    private Template template;

    public static final String STATUS_APPROVING = "审批中";
    public static final String STATUS_UNAPPROVED = "未通过";
    public static final String STATUS_APPROVED = "已通过";



    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public User getApplicant() {
        return applicant;
    }

    public void setApplicant(User applicant) {
        this.applicant = applicant;
    }

    public Date getApplyDate() {
        return applyDate;
    }

    public void setApplyDate(Date applyDate) {
        this.applyDate = applyDate;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDocFilePath() {
        return docFilePath;
    }

    public void setDocFilePath(String docFilePath) {
        this.docFilePath = docFilePath;
    }

    public Set<ApproveInfo> getApproveInfos() {
        return approveInfos;
    }

    public void setApproveInfos(Set<ApproveInfo> approveInfos) {
        this.approveInfos = approveInfos;
    }

    public Template getTemplate() {
        return template;
    }

    public void setTemplate(Template template) {
        this.template = template;
    }
}
